package cn.kgc.ssm.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author: mosin
 * @version: v1.0  2022/12/15
 */
@ControllerAdvice
public class GlobalExceptionHandler {

    @ExceptionHandler(Exception.class)
    public String  exceptionHandler(Exception e){
        e.printStackTrace();
        return "redirect:/500.html";
    }

}
